// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request';

/**
 * 新增赛事文件
 * @param data
 * @constructor
 */
export function competitionFileSaveApi(data) {
  return request({
    url: '/admin/competition/file/save',
    method: 'POST',
    data: data,
  });
}

/**
 * 赛事文件分页列表
 * @param pram
 * @constructor
 */
export function competitionFileListApi(pram) {
  return request({
    url: '/admin/competition/file/page/list',
    method: 'GET',
    params: pram,
  });
}

/**
 * 赛事文件详情
 * @param id
 * @constructor
 */
export function competitionFileDetailApi(id) {
  return request({
    url: `/admin/competition/file/detail/${id}`,
    method: 'GET',
  });
}

/**
 * 删除赛事文件
 * @param id
 * @constructor
 */
export function competitionFileDeleteApi(id) {
  return request({
    url: `/admin/competition/file/delete/${id}`,
    method: 'GET',
  });
}

/**
 * 更新赛事文件状态
 * @param id
 * @constructor
 */
export function competitionFileStatusApi(id) {
  return request({
    url: `/admin/competition/file/status/${id}`,
    method: 'GET',
  });
} 